Xbasic

Office::Excel2003DocumentLoad Method

Syntax

.Load as L (FileName as C)

Arguments

FileNameCharacter

The file to load. Must be an ".xls" file.

Returns

resultLogical

Returns .t. if the operation succeeds. Otherwise, returns .f.. The Office::Excel2003Document CallResult object will contain additional information if the operation fails.

Description

Load the contents of an existing Excel 2003 (.xls) file.

Example

DIM obj as Office::Excel2003Document
? obj.load("C:\Users\janice\Documents\Excel\inventory.xls")
= .T.
The Office::Excel2003Document class is for working with Excel 2003 (.xls) files. For Excel 2007 (.xlsx) files, use Office::ExcelDocument.

See Also